
// 居民请求参数
export type UserInfoParams={
    usertype?:string,
    buildingid:number
    name?:string
    houseno?:string
    mobile?:string
    psize:number
    page:number
}

// 居民列表返回参数
export interface UserList {
	id?: number;
	openid?: any;
	usertypeName?: string;
	building?: string;
	memberid?: number;
	state?: number;
	stateName?: string;
	addtime?: string;
    address: number;
	buildingid: number;
	cardid: string;
	houseid: number;
	houseno: string;
	mobile: string;
	name: string;
	nation: string;
	photo: string;
	sex: number;
	usernative: string;
	usertype: string;
}

export interface UserListObject {
	counts: number;
	pageCounts: number;
	pageSize: number;
	list: UserList[];
}

// 添加参数
export interface UserAddParams {
	address: number;
	buildingid: number;
	cardid: string;
	houseid: number;
	houseno: string;
	mobile: string;
	name: string;
	nation: string;
	photo: string;
	sex: number;
	usernative: string;
	usertype: string;
}

// 批量删除
export type DelAllIds={
    ids: number[];
}

// 批量审核
export type UpdateStateIds={
    ids: number[];
	state:2
}


// 居民类型返回列表参数
export interface UserInfoTypeList {
	id: number;
	name: string;
}

export interface UserInfoTypeObject {
	counts: number;
	pageCounts: number;
	pageSize: number;
	list: UserInfoTypeList[];
}

// 楼栋一层返回列表参数
export interface buildingChildren {
	id: number;
	name: string;
	pid: number;
	leaf: number;
	children?: any;
}

export interface buildingTypeList {
	id: number;
	name: string;
	pid: number;
	leaf: number;
	children: buildingChildren[];
}

export interface buildingTypeObject {
	counts: number;
	pageCounts: number;
	pageSize: number;
	list: buildingTypeList[];
}

// 楼栋二层返回列表参数
export interface housesTypeList {
	id: number;
	buildingid: number;
	building: string;
	houseno: string;
	areas: number;
	type: string;
	orientation: string;
}

export interface housesObject {
	counts: number;
	pageCounts: number;
	pageSize: number;
	list: housesTypeList[];
}